package com.xmall.product.service.remote;

import com.xmall.define.base.Result;
import com.xmall.define.dto.pay.AlipayTradeDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 微服务 - pay：pay
 */
@FeignClient(value = "xmall-pay")
public interface PayServiceFeign {

    /**
     * 交易查询
     */
    @GetMapping("/service/pay/alipay/tradeInfo")
    Result<AlipayTradeDto> tradeInfo(@RequestParam("orderSn") String orderSn,
                                     @RequestParam(value = "aliTradeNo", required = false) String aliTradeNo);

}
